package com.hongxun.design.utils;

import android.app.Activity;
import android.os.Bundle;

import com.hongxun.design.activitys.EditImageActivity;
import com.hongxun.design.mytools.IntentToActivity;
import com.hongxun.design.mytools.MString;

/**
 * Created by zerdoor_pc on 2016/5/26.
 */
public class PhotosActivityUtil {

    public static void IntentToEditImageActivity(Activity activity, String PATH, int CODE, int Type) {
        Bundle bundle = new Bundle();
        bundle.putString(MString.PATH, PATH);//路径
        bundle.putInt(MString.CODE, CODE);//类型
        bundle.putInt(MString.ISEDIT, Type);//是否编辑
        IntentToActivity.intent(activity, EditImageActivity.class, bundle);
    }

    public static void IntentToEditImageActivity(Activity activity, String PATH,String ID,String UUID, int CODE, int Type) {
        Bundle bundle = new Bundle();
        bundle.putString(MString.PATH, PATH);//路径
        bundle.putString(MString.PHOTO_ID, ID);//id
        bundle.putString(MString.PHOTO_UUID, UUID);//id
        bundle.putInt(MString.CODE, CODE);//类型
        bundle.putInt(MString.ISEDIT, Type);//是否编辑
        IntentToActivity.intent(activity, EditImageActivity.class, bundle);
    }

    public static void IntentToEditImageActivity(Activity activity, String PATH, int CODE, int Type, String OBJ) {
        Bundle bundle = new Bundle();
        bundle.putString(MString.PATH, PATH);//路径
        bundle.putInt(MString.CODE, CODE);//类型
        bundle.putInt(MString.ISEDIT, Type);//是否编辑
        bundle.putString(MString.Photos, OBJ);//数据源
        IntentToActivity.intent(activity, EditImageActivity.class, bundle);
    }
}
